import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserMembershipService } from './user-membership.service';
import { UserMembershipController } from './user-membership.controller';
import { UserMembership } from './entities/user-membership.entity';
import { MembershipModule } from '../membership/membership.module';
import { WalletModule } from '../wallet/wallet.module';

/**
 * 用户会员模块
 */
@Module({
  imports: [
    TypeOrmModule.forFeature([UserMembership]),
    MembershipModule,
    WalletModule,
  ],
  controllers: [UserMembershipController],
  providers: [UserMembershipService],
  exports: [UserMembershipService],
})
export class UserMembershipModule {}